var curPageName = "index";

$(function(){
	changeCurrent();
	$("td[name='hrefId']").each(function(){
		$(this).bind('click',function(){
			var city =$(this).attr("city");
			var page =$(this).attr("page");
			var lstatus =$(this).attr("lstatus");
			$("#select_city option").each(function(){
				if($(this).text()==city){
					cityId = this.value;
					return false;
				}
			});
			$.cookie("cityId",cityId,{path: domain});
			$.cookie("cityTitle",city,{path: domain});
			$("#select_city option[value!="+cityId+"]").attr("selected",false);
			$("#select_city option[value="+cityId+"]").attr("selected",true);
			window.location=domain+'/'+page+'/index?lstatus='+lstatus;
		});
	});
})
